)>,System.Func{-1,System.Boolean},System.String)}
,System.Func{-0,-1,System.Boolean},System.String)}
,System.Func{-1,System.Boolean},System.Func{-1,System.String})}
,System.Func{-0,-1,System.Boolean},System.Func{-0,-1,System.String})}
,System.Func{-0,-1,System.Boolean},System.Func{-0,-1,System.Boolean,System.String})}
Defined in Type: ObservableValidationReactiveUI.Validation.Components
Assembly: ReactiveUI.Validation.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net9.0, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net481, net462
Overloads
-
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, string message) -
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, string message) -
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, Func<TValue, string> messageFunc) -
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, string> messageFunc) -
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, string> messageFunc) -
public ObservableValidation(IObservable<IValidationState> observable)
1. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, string message)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
message | string | Validation error message as a constant. |
2. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, string message)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
message | string | Validation error message as a constant. |
3. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TValue, bool> isValidFunc, Func<TValue, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
4. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
5. Overload
public ObservableValidation(TViewModel viewModel, IObservable<TValue> observable, Func<TViewModel, TValue, bool> isValidFunc, Func<TViewModel, TValue, bool, string> messageFunc)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | TViewModel | ViewModel instance. |
observable | IObservable | Observable that updates the view model property validity. |
isValidFunc | Func | Func to define if the viewModelProperty is valid or not. |
messageFunc | Func | Func to define the validation error message. |
6. Overload
public ObservableValidation(IObservable<IValidationState> observable)
Summary: Initializes a new instance of the ObservableValidation class.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable | Observable that updates the view model property validity. |